package parkshop.pmcourse.service;

import java.util.List;

import parkshop.pmcourse.domain.Product;
import parkshop.pmcourse.domain.ShoppingCart;
import parkshop.pmcourse.dto.PageBean;

public interface ShoppingCartService {
	
	void saveShoppingCart(ShoppingCart shoppingCart);
	
	boolean deleteShopCartById(Long id);
	
	List<ShoppingCart> getShoppingCartByCustomerId(Long id);
	
	ShoppingCart getShoppingCartByCartId(Long id);
	
	boolean payShoppingCart(Long id);
	
	List<Product> getProductsByCartList(List<ShoppingCart> cartList);
	
	PageBean getProductPageByCustomerId(Long customerId,int pageNumber);
	
}
